#include "StdAfx.h"
#include "OpenPitBlock.h"

CRegionBlock::CRegionBlock(void)
	: m_iLatAxisIndex(-1)
	, m_iVerAxisIndex(-1)
	, m_dLength(0)
	, m_dWidth(0)
	, m_dOreWeight(0)
	, m_dRockWeight(0)
	, m_iSolutionType(UNKNOWN_SOLUTION)
	, m_iSolutionValue(-1)
	, m_oreBlkType(UNKNOWN_BLK_TYPE)
{
}

CRegionBlock::~CRegionBlock(void)
{
}

CRegionBlock::CRegionBlock(const CRegionBlock& other)
{
	this->m_iLatAxisIndex = other.m_iLatAxisIndex;
	this->m_iVerAxisIndex = other.m_iVerAxisIndex;
	this->m_dLength = other.m_dLength;
	this->m_dWidth = other.m_dWidth;
	this->m_dOreWeight = other.m_dOreWeight;
	this->m_dRockWeight = other.m_dRockWeight;
	this->m_iSolutionType = other.m_iSolutionType;
	this->m_iSolutionValue = other.m_iSolutionValue;
	this->m_oreBlkType = other.m_oreBlkType;
	this->m_vec_dGrade = other.m_vec_dGrade;
	this->m_vBlkEnt = other.m_vBlkEnt;
}

CRegionBlock& CRegionBlock::operator=(const CRegionBlock& other)
{
	if (this == &other)
		return *this;

	this->m_iLatAxisIndex = other.m_iLatAxisIndex;
	this->m_iVerAxisIndex = other.m_iVerAxisIndex;
	this->m_dLength = other.m_dLength;
	this->m_dWidth = other.m_dWidth;
	this->m_dOreWeight = other.m_dOreWeight;
	this->m_dRockWeight = other.m_dRockWeight;
	this->m_iSolutionType = other.m_iSolutionType;
	this->m_iSolutionValue = other.m_iSolutionValue;
	this->m_oreBlkType = other.m_oreBlkType;
	this->m_vec_dGrade = other.m_vec_dGrade;
	this->m_vBlkEnt = other.m_vBlkEnt;

	return  *this;
}

